<template>
    <div 
    @click="jumpDetails"
    class="cdsay">
        <img :src="imgUrl" alt="">
    </div>
</template>

<script>
export default {
    props:{
        imgUrl:{},
    },
    name: "Cdsay",
    data(){
        return {
            infoObj: {imgUrl:this.imgUrl},
            flag: true,
        }
    },
    methods:{
        jumpDetails(){
            this.$emit("setData",{infoObj:this.infoObj,flag:this.flag})
        }
    }
}
</script>

<style lang="scss" scoped>
.cdsay{
    width: 100%;
    img{
        width: 100%;
    }
}
</style>